package com.gjintel.framework.role.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @description 操作角色关联类 
 * @author wwang 
 * @date 2016-9-30
 */
@Entity
@Table(name="t_proj_op_role_asso")
public class ProjectOperationRole implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private String id;
	private String roleId;//角色id
	private String operationId;//操作
	
	public ProjectOperationRole() {
	}

	public void setId(String id) {
		this.id = id;
	}

	@Id
	@GeneratedValue(generator = "UIDGenerator")
	@GenericGenerator(name = "UIDGenerator", strategy = "org.hibernate.id.UUIDHexGenerator")
	public String getId() {
		return id;
	}
	
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	@Column(name="role_id")
	public String getRoleId() {
		return roleId;
	}
	
	@Column(name="operation_id")
	public String getOperationId() {
		return operationId;
	}
	public void setOperationId(String operationId) {
		this.operationId = operationId;
	}
}
